package com.gj.xxl.job.admin.dao;

import com.gj.xxl.job.admin.core.entity.JobInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface XxlJobInfoDAO {

    List<JobInfo> findAll();

    void updateTriggerTime(JobInfo jobInfo);

    List<JobInfo> preReadJobs(long maxNextTriggerTime);

    JobInfo findByJobId(@Param("jobId") Integer jobId);
}
